<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <title>layout</title>
    <link href="../src/kiss-ui.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <div class="k-header">
        <div class="left">
            <i class="fa fa-chevron-left"></i>
        </div>
        <div class="middle">kiss-ui</div>
        <div class="right">
            <i class="fa fa-ellipsis-h"></i>
        </div>
    </div>
    <div class="k-navbar">
        <a class="navbar-item">
            <i class="fa fa-home icon"></i>
            <span class="name">首页</span>
        </a>
        <a class="navbar-item active">
            <i class="fa fa-list icon"></i>
            <span class="name">通讯</span>
        </a>
        <a class="navbar-item">
            <i class="fa fa-search icon"></i>
            <span class="name">发现</span>
        </a>
        <a class="navbar-item">
            <i class="fa fa-user-o icon"></i>
            <span class="name">我的</span>
        </a>
    </div>
    <div class="k-content">
        <h1 class="k-panel-title">Toast提示组件</h1>
        <div class="k-panel-body">
            <a class="k-btn btn-primary" id="js-show-toast-loading">加载中提示</a>
            <br>
            <a class="k-btn btn-primary" id="js-show-toast-success">成功提示</a>
        </div>
    </div>
    <div class="k-toast" id="k-toast-loading-action">
        <i class="fa fa-spinner fa-spin k-toast-icon"></i>
        <p class="k-toast-info">操作进行中</p>
    </div>
    <div class="k-toast" id="k-toast-success-action">
        <i class="fa fa-check k-toast-icon"></i>
        <p class="k-toast-info">操作成功</p>
    </div>
</body>
<script type="text/javascript">
    var ktla = document.getElementById("js-show-toast-loading");
    ktla.onclick = function () {
        console.log("123");
        document.getElementById("k-toast-loading-action").classList.add('show')
    }
</script>
</html>